package apps.sim.util.thread;

public class TaskResponse<T> {
	private T response;
	private ExecutionStatus executionStatus;
	private Exception exception;

	public T getResponse() {
		return response;
	}

	public void setResponse(T response) {
		this.response = response;
	}

	public ExecutionStatus getExecutionStatus() {
		return executionStatus;
	}

	public void setExecutionStatus(ExecutionStatus executionStatus) {
		this.executionStatus = executionStatus;
	}

	public Exception getException() {
		return exception;
	}

	public void setException(Exception exception) {
		this.exception = exception;
	}

	public static enum ExecutionStatus {
		SUCCESS, FAILURE, CANCELED, ERROR, INTERRUPTED, TIMEDOUT
	}

}
